import React from "react";
import {Button,WhiteSpace} from "antd-mobile";

class Root extends React.Component {

    //TODO 语法编译报错
    _reduce = (e) =>{
        console.log(e);
    };

    render() {
        //颜色测试
        let color = {
            color:'#000',
            backgroundColor:'rgb(255,255,0)'
        };

        return <div>
            <Button type="primary" onClick={this._reduce()}>组件测试</Button>
            <Button loading>loading button</Button><WhiteSpace />
            <div style={color}>内联样式测试</div>
        </div>;
    }


}


export default Root;

